package cn.xej.demo.condition.annotation;

import cn.xej.demo.condition.RealCondition;
import org.springframework.context.annotation.Conditional;
import org.springframework.stereotype.Service;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author alicat.xu
 * @Date 2021/11/13 9:30 下午
 */
@Service
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Conditional({RealCondition.class})
public @interface RealService {

    String value();
}
